package com.sitech.ibnms.c3p.command.sql;

import com.sitech.ibnms.c3p.domain.ResourceAccount;
import org.springframework.jdbc.core.ConnectionCallback;

/**
 * Created by leo on 16/2/16.
 */
public interface SQLExecutor {
    /**
     * 加载驱动类
     */
    @SuppressWarnings("unused")
    Class[] DRIVER_CLASSES = {oracle.jdbc.OracleDriver.class, com.mysql.jdbc.Driver.class};

    <T> T execute(final ResourceAccount resourceAccount, final ConnectionCallback<T> action);
}
